package com.geen.tuoke.widget

import android.app.Activity
import android.content.Context
import android.util.AttributeSet
import android.view.LayoutInflater
import android.view.View
import android.widget.FrameLayout
import androidx.databinding.DataBindingUtil
import com.geen.tuoke.R
import com.geen.tuoke.databinding.LayoutEmptyViewBinding

/**
 * @author 86153
 */
class EmptyLayout : FrameLayout {

    private lateinit var mBinding : LayoutEmptyViewBinding

    constructor(context: Context) : super(context) {
        initView(context)
    }

    constructor(
        context: Context,
        attrs: AttributeSet?
    ) : super(context, attrs) {
        initView(context)
    }

    constructor(
        context: Context,
        attrs: AttributeSet?,
        defStyleAttr: Int
    ) : super(context, attrs, defStyleAttr) {
        initView(context)
    }

    private fun initView(context: Context) {
        mBinding = DataBindingUtil.inflate(LayoutInflater.from(context),
            R.layout.layout_empty_view,this,true)
    }
}